package com.atldy.commerce.controller;

import com.atldy.commerce.service.SleuthService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @version 1.0
 * @Author: lidongyang
 * @CreateTime: 2021-08-09 23:06
 * @Description：
 */
@RequestMapping("/sleuth")
@RestController
@Slf4j
public class SleuthController {

    @Autowired
    private SleuthService sleuthService;

    @GetMapping("/getSleuth")
    public Map getSleuth() {
        log.info(">>>调用getSleuth");
        return sleuthService.getTracer();
    }
}